<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png">
  <link rel="icon" type="image/png" href="../assets/img/favicon.png">
  <title>
    Black Dashboard by Creative Tim
  </title>
  <!--     Fonts and icons     -->
<!--  <link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,600,700,800" rel="stylesheet" />-->
  <link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
  <!-- Nucleo Icons -->
  <link href="../assets/css/nucleo-icons.css" rel="stylesheet" />
  <!-- CSS Files -->
  <link href="../assets/css/black-dashboard.css?v=1.0.0" rel="stylesheet" />
  <!-- CSS Just for demo purpose, don't include it in your project -->
  <link href="../assets/demo/demo.css" rel="stylesheet" />
</head>

<body class="">
  <div class="wrapper">
    <div class="sidebar">
      <!--
        Tip 1: You can change the color of the sidebar using: data-color="blue | green | orange | red"
    -->
      <div class="sidebar-wrapper">
        <div class="logo">
          <a href="javascript:void(0)" class="simple-text logo-mini">
            *
          </a>
          <a href="javascript:void(0)" class="simple-text logo-normal">
            功能选择
          </a>
        </div>
        <ul class="nav">
          <li class="active ">
            <a href="test">
              <i class="tim-icons icon-chart-pie-36"></i>
              <p>图像去雾</p>
            </a>
          </li>
          <li>
            <a href="test_i">
              <i class="tim-icons icon-atom"></i>
              <p>算法比较</p>
            </a>
          </li>
        </ul>
      </div>
    </div>
    <div class="main-panel">
      <!-- Navbar -->
      <nav class="navbar navbar-expand-lg navbar-absolute navbar-transparent">
        <div class="container-fluid">
          <div class="navbar-wrapper">
            <div class="navbar-toggle d-inline">
              <button type="button" class="navbar-toggler">
                <span class="navbar-toggler-bar bar1"></span>
                <span class="navbar-toggler-bar bar2"></span>
                <span class="navbar-toggler-bar bar3"></span>
              </button>
            </div>
            <a class="navbar-brand" href="javascript:void(0)">图像去雾</a>
          </div>
          <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-bar navbar-kebab"></span>
            <span class="navbar-toggler-bar navbar-kebab"></span>
            <span class="navbar-toggler-bar navbar-kebab"></span>
          </button>
          <div class="collapse navbar-collapse" id="navigation">
            <ul class="navbar-nav ml-auto">
              <li class="search-bar input-group">
                <button class="btn btn-link" id="search-button" data-toggle="modal" data-target="#searchModal"><i class="tim-icons icon-zoom-split" ></i>
                  <span class="d-lg-none d-md-block">Search</span>
                </button>
              </li>
              <li class="dropdown nav-item">
                <a href="javascript:void(0)" class="dropdown-toggle nav-link" data-toggle="dropdown">
                  <div class="notification d-none d-lg-block d-xl-block"></div>
                  <i class="tim-icons icon-sound-wave"></i>
                  <p class="d-lg-none">
                    Notifications
                  </p>
                </a>
                <ul class="dropdown-menu dropdown-menu-right dropdown-navbar">
                  <li class="nav-link"><a href="#" class="nav-item dropdown-item">Mike John responded to your email</a></li>
                  <li class="nav-link"><a href="javascript:void(0)" class="nav-item dropdown-item">You have 5 more tasks</a></li>
                  <li class="nav-link"><a href="javascript:void(0)" class="nav-item dropdown-item">Your friend Michael is in town</a></li>
                  <li class="nav-link"><a href="javascript:void(0)" class="nav-item dropdown-item">Another notification</a></li>
                  <li class="nav-link"><a href="javascript:void(0)" class="nav-item dropdown-item">Another one</a></li>
                </ul>
              </li>
              <li class="dropdown nav-item">
                <a href="#" class="dropdown-toggle nav-link" data-toggle="dropdown">
                  <div class="photo">
                    <img src="../assets/img/anime3.png" alt="Profile Photo">
                  </div>
                  <b class="caret d-none d-lg-block d-xl-block"></b>
                  <p class="d-lg-none">
                    Log out
                  </p>
                </a>
                <ul class="dropdown-menu dropdown-navbar">
                  <li class="nav-link"><a href="javascript:void(0)" class="nav-item dropdown-item">Profile</a></li>
                  <li class="nav-link"><a href="javascript:void(0)" class="nav-item dropdown-item">Settings</a></li>
                  <li class="dropdown-divider"></li>
                  <li class="nav-link"><a href="javascript:void(0)" class="nav-item dropdown-item">Log out</a></li>
                </ul>
              </li>
              <li class="separator d-lg-none"></li>
            </ul>
          </div>
        </div>
      </nav>
      <div class="modal modal-search fade" id="searchModal" tabindex="-1" role="dialog" aria-labelledby="searchModal" aria-hidden="true">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <input type="text" class="form-control" id="inlineFormInputGroup" placeholder="SEARCH">
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <i class="tim-icons icon-simple-remove"></i>
              </button>
            </div>
          </div>
        </div>
      </div>
      <!-- End Navbar -->
        <div class="content">
            <div class="row">
                <div class="col-12">
                    <div class="card card-chart">
                        <div class="card-header ">
                            <div class="row">
                                <div class="col-sm-6 text-left">
<!--                                    <h5 class="card-category">Total Shipments</h5>-->
                                    <h2 class="card-title">图片上传与算法选择</h2>
                                </div>
                                <div class="col-sm-6">
                                    <div class="btn-group btn-group-toggle float-right" data-toggle="buttons">
                                        <h4>算法选择：</h4>
                                        <label class="btn btn-sm btn-primary btn-simple active" id="0">
                                            <input type="radio" name="options" value="AODNet" checked>
                                            <span class="d-none d-sm-block d-md-block d-lg-block d-xl-block">AODNet</span>
                                            <span class="d-block d-sm-none">
                                                <i class="tim-icons icon-single-02"></i>
                                            </span>
                                        </label>
                                        <label class="btn btn-sm btn-primary btn-simple" id="1">
                                            <input type="radio" class="d-none d-sm-none" name="options" value="GCANet">
                                            <span class="d-none d-sm-block d-md-block d-lg-block d-xl-block">GCANet</span>
                                            <span class="d-block d-sm-none">
                                                <i class="tim-icons icon-gift-2"></i>
                                            </span>
                                        </label>
                                        <label class="btn btn-sm btn-primary btn-simple" id="2">
                                            <input type="radio" class="d-none" name="options" value="FFANet">
                                            <span class="d-none d-sm-block d-md-block d-lg-block d-xl-block">FFANet</span>
                                            <span class="d-block d-sm-none">
                                                <i class="tim-icons icon-tap-02"></i>
                                            </span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card-body">
                            <div class="chart-area">
<!--                                <canvas id="chartBig1"></canvas>-->

                                <div class="input-group mb-3" style="margin-top:40px;width:500px;">
                                    <div class="input-group-prepend">
                                        <span style="height: 38px" class="input-group-text" id="inputGroupFileAddon">Upload</span>
                                    </div>
                                    <div class="custom-file">
                                        <input type="file" name="imageFile" class="custom-file-input" id="inputGroupFile"
                                               aria-describedby="inputGroupFileAddon" onchange="changeImageFile()">
                                        <label id="inputFileLabelId" class="custom-file-label" for="inputGroupFile">Choose image
                                            file</label>
                                    </div>
                                </div>
                                <br>
                                <div class="input-group mb-3" style="margin-top:5px;width:500px">
                                    <div class="input-group-prepend">
                                        <span style="height: 38px" class="input-group-text" id="basic-addon1">Picture link</span>
                                    </div>
                                    <input id="imageLinkId" name="imageLink" type="text" class="form-control" placeholder=""
                                           aria-label="Username" aria-describedby="basic-addon1" onchange="changeImageLink()" value="">
                                </div>
                                <br>

                                <input type="submit" value="提交" class="btn btn-primary" onclick="submit()"
                                       style="margin-top:0px;margin-left:400px;width:100px "/>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-4">
                    <div class="card card-chart">
                        <div class="card-header">
                            <h5 class="card-category">原始图像</h5>
<!--                            <h3 class="card-title"><i class="tim-icons icon-bell-55 text-primary"></i> 763,215</h3>-->
                        </div>
                        <div class="card-body">
                            <div class="chart-area">
<!--                                <canvas id="chartLinePurple"></canvas>-->
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="card card-chart">
                        <div class="card-header">
                            <h5 class="card-category">清晰图像</h5>
<!--                            <h3 class="card-title"><i class="tim-icons icon-delivery-fast text-info"></i> 3,500€</h3>-->
                        </div>
                        <div class="card-body">
                            <div class="chart-area">
<!--                                <canvas id="CountryChart"></canvas>-->
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="card card-chart">
                        <div class="card-header">
                            <h5 class="card-category">去雾耗时</h5>
<!--                            <h3 class="card-title"><i class="tim-icons icon-send text-success"></i> 12,100K</h3>-->
                        </div>
                        <div class="card-body">
                            <div class="chart-area">
<!--                                <canvas id="chartLineGreen"></canvas>-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
<!--        <div class="row">-->
<!--          <div class="col-lg-6 col-md-12">-->
<!--            <div class="card card-tasks">-->
<!--              <div class="card-header ">-->
<!--                <h6 class="title d-inline">Tasks(5)</h6>-->
<!--                <p class="card-category d-inline">today</p>-->
<!--                <div class="dropdown">-->
<!--                  <button type="button" class="btn btn-link dropdown-toggle btn-icon" data-toggle="dropdown">-->
<!--                    <i class="tim-icons icon-settings-gear-63"></i>-->
<!--                  </button>-->
<!--                  <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuLink">-->
<!--                    <a class="dropdown-item" href="#pablo">Action</a>-->
<!--                    <a class="dropdown-item" href="#pablo">Another action</a>-->
<!--                    <a class="dropdown-item" href="#pablo">Something else</a>-->
<!--                  </div>-->
<!--                </div>-->
<!--              </div>-->
<!--              <div class="card-body ">-->
<!--                <div class="table-full-width table-responsive">-->
<!--                  <table class="table">-->
<!--                    <tbody>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          <div class="form-check">-->
<!--                            <label class="form-check-label">-->
<!--                              <input class="form-check-input" type="checkbox" value="">-->
<!--                              <span class="form-check-sign">-->
<!--                                <span class="check"></span>-->
<!--                              </span>-->
<!--                            </label>-->
<!--                          </div>-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          <p class="title">Update the Documentation</p>-->
<!--                          <p class="text-muted">Dwuamish Head, Seattle, WA 8:47 AM</p>-->
<!--                        </td>-->
<!--                        <td class="td-actions text-right">-->
<!--                          <button type="button" rel="tooltip" title="" class="btn btn-link" data-original-title="Edit Task">-->
<!--                            <i class="tim-icons icon-pencil"></i>-->
<!--                          </button>-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          <div class="form-check">-->
<!--                            <label class="form-check-label">-->
<!--                              <input class="form-check-input" type="checkbox" value="" checked="">-->
<!--                              <span class="form-check-sign">-->
<!--                                <span class="check"></span>-->
<!--                              </span>-->
<!--                            </label>-->
<!--                          </div>-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          <p class="title">GDPR Compliance</p>-->
<!--                          <p class="text-muted">The GDPR is a regulation that requires businesses to protect the personal data and privacy of Europe citizens for transactions that occur within EU member states.</p>-->
<!--                        </td>-->
<!--                        <td class="td-actions text-right">-->
<!--                          <button type="button" rel="tooltip" title="" class="btn btn-link" data-original-title="Edit Task">-->
<!--                            <i class="tim-icons icon-pencil"></i>-->
<!--                          </button>-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          <div class="form-check">-->
<!--                            <label class="form-check-label">-->
<!--                              <input class="form-check-input" type="checkbox" value="">-->
<!--                              <span class="form-check-sign">-->
<!--                                <span class="check"></span>-->
<!--                              </span>-->
<!--                            </label>-->
<!--                          </div>-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          <p class="title">Solve the issues</p>-->
<!--                          <p class="text-muted">Fifty percent of all respondents said they would be more likely to shop at a company </p>-->
<!--                        </td>-->
<!--                        <td class="td-actions text-right">-->
<!--                          <button type="button" rel="tooltip" title="" class="btn btn-link" data-original-title="Edit Task">-->
<!--                            <i class="tim-icons icon-pencil"></i>-->
<!--                          </button>-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          <div class="form-check">-->
<!--                            <label class="form-check-label">-->
<!--                              <input class="form-check-input" type="checkbox" value="">-->
<!--                              <span class="form-check-sign">-->
<!--                                <span class="check"></span>-->
<!--                              </span>-->
<!--                            </label>-->
<!--                          </div>-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          <p class="title">Release v2.0.0</p>-->
<!--                          <p class="text-muted">Ra Ave SW, Seattle, WA 98116, SUA 11:19 AM</p>-->
<!--                        </td>-->
<!--                        <td class="td-actions text-right">-->
<!--                          <button type="button" rel="tooltip" title="" class="btn btn-link" data-original-title="Edit Task">-->
<!--                            <i class="tim-icons icon-pencil"></i>-->
<!--                          </button>-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          <div class="form-check">-->
<!--                            <label class="form-check-label">-->
<!--                              <input class="form-check-input" type="checkbox" value="">-->
<!--                              <span class="form-check-sign">-->
<!--                                <span class="check"></span>-->
<!--                              </span>-->
<!--                            </label>-->
<!--                          </div>-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          <p class="title">Export the processed files</p>-->
<!--                          <p class="text-muted">The report also shows that consumers will not easily forgive a company once a breach exposing their personal data occurs. </p>-->
<!--                        </td>-->
<!--                        <td class="td-actions text-right">-->
<!--                          <button type="button" rel="tooltip" title="" class="btn btn-link" data-original-title="Edit Task">-->
<!--                            <i class="tim-icons icon-pencil"></i>-->
<!--                          </button>-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          <div class="form-check">-->
<!--                            <label class="form-check-label">-->
<!--                              <input class="form-check-input" type="checkbox" value="">-->
<!--                              <span class="form-check-sign">-->
<!--                                <span class="check"></span>-->
<!--                              </span>-->
<!--                            </label>-->
<!--                          </div>-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          <p class="title">Arival at export process</p>-->
<!--                          <p class="text-muted">Capitol Hill, Seattle, WA 12:34 AM</p>-->
<!--                        </td>-->
<!--                        <td class="td-actions text-right">-->
<!--                          <button type="button" rel="tooltip" title="" class="btn btn-link" data-original-title="Edit Task">-->
<!--                            <i class="tim-icons icon-pencil"></i>-->
<!--                          </button>-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                    </tbody>-->
<!--                  </table>-->
<!--                </div>-->
<!--              </div>-->
<!--            </div>-->
<!--          </div>-->
<!--          <div class="col-lg-6 col-md-12">-->
<!--            <div class="card ">-->
<!--              <div class="card-header">-->
<!--                <h4 class="card-title"> Simple Table</h4>-->
<!--              </div>-->
<!--              <div class="card-body">-->
<!--                <div class="table-responsive">-->
<!--                  <table class="table tablesorter " id="">-->
<!--                    <thead class=" text-primary">-->
<!--                      <tr>-->
<!--                        <th>-->
<!--                          Name-->
<!--                        </th>-->
<!--                        <th>-->
<!--                          Country-->
<!--                        </th>-->
<!--                        <th>-->
<!--                          City-->
<!--                        </th>-->
<!--                        <th class="text-center">-->
<!--                          Salary-->
<!--                        </th>-->
<!--                      </tr>-->
<!--                    </thead>-->
<!--                    <tbody>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          Dakota Rice-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Niger-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Oud-Turnhout-->
<!--                        </td>-->
<!--                        <td class="text-center">-->
<!--                          $36,738-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          Minerva Hooper-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Curaçao-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Sinaai-Waas-->
<!--                        </td>-->
<!--                        <td class="text-center">-->
<!--                          $23,789-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          Sage Rodriguez-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Netherlands-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Baileux-->
<!--                        </td>-->
<!--                        <td class="text-center">-->
<!--                          $56,142-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          Philip Chaney-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Korea, South-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Overland Park-->
<!--                        </td>-->
<!--                        <td class="text-center">-->
<!--                          $38,735-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          Doris Greene-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Malawi-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Feldkirchen in Kärnten-->
<!--                        </td>-->
<!--                        <td class="text-center">-->
<!--                          $63,542-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          Mason Porter-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Chile-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Gloucester-->
<!--                        </td>-->
<!--                        <td class="text-center">-->
<!--                          $78,615-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                      <tr>-->
<!--                        <td>-->
<!--                          Jon Porter-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Portugal-->
<!--                        </td>-->
<!--                        <td>-->
<!--                          Gloucester-->
<!--                        </td>-->
<!--                        <td class="text-center">-->
<!--                          $98,615-->
<!--                        </td>-->
<!--                      </tr>-->
<!--                    </tbody>-->
<!--                  </table>-->
<!--                </div>-->
<!--              </div>-->
<!--            </div>-->
<!--          </div>-->
        </div>
      </div>
    </div>
  </div>
  <div class="fixed-plugin">
    <div class="dropdown show-dropdown">
      <a href="#" data-toggle="dropdown">
        <i class="fa fa-cog fa-2x"> </i>
      </a>
      <ul class="dropdown-menu">
        <li class="header-title"> Sidebar Background</li>
        <li class="adjustments-line">
          <a href="javascript:void(0)" class="switch-trigger background-color">
            <div class="badge-colors text-center">
              <span class="badge filter badge-primary active" data-color="primary"></span>
              <span class="badge filter badge-info" data-color="blue"></span>
              <span class="badge filter badge-success" data-color="green"></span>
            </div>
            <div class="clearfix"></div>
          </a>
        </li>
        <li class="adjustments-line text-center color-change">
          <span class="color-label">LIGHT MODE</span>
          <span class="badge light-badge mr-2"></span>
          <span class="badge dark-badge ml-2"></span>
          <span class="color-label">DARK MODE</span>
        </li>
      </ul>
    </div>
  </div>
  <!--   Core JS Files   -->
  <script src="../assets/js/core/jquery.min.js"></script>
  <script src="../assets/js/core/popper.min.js"></script>
  <script src="../assets/js/core/bootstrap.min.js"></script>
  <script src="../assets/js/plugins/perfect-scrollbar.jquery.min.js"></script>
  <!--  Google Maps Plugin    -->
  <!-- Place this tag in your head or just before your close body tag. -->
<!--  <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>-->
  <!-- Chart JS -->
  <script src="../assets/js/plugins/chartjs.min.js"></script>
  <!--  Notifications Plugin    -->
  <script src="../assets/js/plugins/bootstrap-notify.js"></script>
  <!-- Control Center for Black Dashboard: parallax effects, scripts for the example pages etc -->
  <script src="../assets/js/black-dashboard.min.js?v=1.0.0"></script><!-- Black Dashboard DEMO methods, don't include it in your project! -->
  <script src="../assets/demo/demo.js"></script>
  <script>
    $(document).ready(function() {
      $().ready(function() {
        $sidebar = $('.sidebar');
        $navbar = $('.navbar');
        $main_panel = $('.main-panel');

        $full_page = $('.full-page');

        $sidebar_responsive = $('body > .navbar-collapse');
        sidebar_mini_active = true;
        white_color = false;

        window_width = $(window).width();

        fixed_plugin_open = $('.sidebar .sidebar-wrapper .nav li.active a p').html();



        $('.fixed-plugin a').click(function(event) {
          if ($(this).hasClass('switch-trigger')) {
            if (event.stopPropagation) {
              event.stopPropagation();
            } else if (window.event) {
              window.event.cancelBubble = true;
            }
          }
        });

        $('.fixed-plugin .background-color span').click(function() {
          $(this).siblings().removeClass('active');
          $(this).addClass('active');

          var new_color = $(this).data('color');

          if ($sidebar.length != 0) {
            $sidebar.attr('data', new_color);
          }

          if ($main_panel.length != 0) {
            $main_panel.attr('data', new_color);
          }

          if ($full_page.length != 0) {
            $full_page.attr('filter-color', new_color);
          }

          if ($sidebar_responsive.length != 0) {
            $sidebar_responsive.attr('data', new_color);
          }
        });

        $('.switch-sidebar-mini input').on("switchChange.bootstrapSwitch", function() {
          var $btn = $(this);

          if (sidebar_mini_active == true) {
            $('body').removeClass('sidebar-mini');
            sidebar_mini_active = false;
            blackDashboard.showSidebarMessage('Sidebar mini deactivated...');
          } else {
            $('body').addClass('sidebar-mini');
            sidebar_mini_active = true;
            blackDashboard.showSidebarMessage('Sidebar mini activated...');
          }

          // we simulate the window Resize so the charts will get updated in realtime.
          var simulateWindowResize = setInterval(function() {
            window.dispatchEvent(new Event('resize'));
          }, 180);

          // we stop the simulation of Window Resize after the animations are completed
          setTimeout(function() {
            clearInterval(simulateWindowResize);
          }, 1000);
        });

        $('.switch-change-color input').on("switchChange.bootstrapSwitch", function() {
          var $btn = $(this);

          if (white_color == true) {

            $('body').addClass('change-background');
            setTimeout(function() {
              $('body').removeClass('change-background');
              $('body').removeClass('white-content');
            }, 900);
            white_color = false;
          } else {

            $('body').addClass('change-background');
            setTimeout(function() {
              $('body').removeClass('change-background');
              $('body').addClass('white-content');
            }, 900);

            white_color = true;
          }


        });

        $('.light-badge').click(function() {
          $('body').addClass('white-content');
        });

        $('.dark-badge').click(function() {
          $('body').removeClass('white-content');
        });
      });
    });
  </script>
  <script>

    $(document).ready(function() {
      // Javascript method's body can be found in assets/js/demos.js
      demo.initDashboardPageCharts();

    });


    function submit() {
        //获取元素
        var x=document.getElementsByName("options");
        //选择的算法
        var chkObjs="null"
        for (var i=0;i<x.length;i++) { //遍历Radio
            if (x[i].checked) {
                //获取选择的算法
                chkObjs = x[i].value;
            }
        }
        // alert(chkObjs);

        var inputGroupFile = document.getElementById("inputGroupFile").value;
        var imageLinkId = document.getElementById("imageLinkId").value;
        console.log(inputGroupFile);
        console.log(imageLinkId);

        $.ajax({
            url: "/detectImage",
            type: "post",
            async: true,
            cache: false,
            dataType: "json",
            // data: {"MultipartFile": inputGroupFile,"imageLink": imageLinkId, "options": chkObjs},
            data: {"MultipartFile": inputGroupFile,"imageLink": imageLinkId,"options": chkObjs},

            success: function (msg) {
                // console.log(msg.flag);
                // console.log(msg.content);
                // if (msg.flag === 200) {
                //     $("#floor_img1").attr("src", "data:image/png;base64," + msg.content);
                // }
                // $("#floor_img1").attr("src", "data:image/png;base64," + msg.content);
                alert(msg)
            },
            error: function () {
                alert('失败 ');
            }
        });






        // if (isEmpty(imageLinkId)&&isEmpty(inputGroupFile)) {
        //     alert("Picture link or file is empty");
        //
        //     // return false;
        // } else {
        //     alert("Picture link or file is not empty");
        //     // return true;
        // }




    }

  </script>
</body>

</html>